package com.test.user.service;

import com.test.ticket.service.TicketService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * @create: 2019-06-29 23:49
 **/
@Service
public class UserService {

    @Reference //dubbo的远程引用，去注册中心查询对应名称的注册服务
            TicketService ticketService;

    public void hello() {
        String ticket = ticketService.getTicket();
        System.out.println("非处娶不得 === " + ticket);
    }
}
